<?php
/** $Id: default_form.php 11917 2009-05-29 19:37:05Z ian $ */
	defined( '_JEXEC' ) or die( 'Restricted access' );
	$session = JFactory::getSession();
	$app = JFactory::getApplication();
	$template = JURI::base() . 'templates/' . $app->getTemplate();
	
	$user		= JFactory::getUser();
	$is_user = false; 
	$is_user_caterer = false; 
	foreach ($user->groups as $key => $value){
		if($value==9) {
			$is_user_caterer = true; 
		}
		if($value==2) {
			$is_user = true; 
		}
	}
?>
<div id="header">
  <div id="w-header">
    <div class="logo"><a href="index.php">Forside</a> </div>
    <!--.logo-->
     {module login menu}    
    <!--.nav-top-1-->
    <div class="clear"></div>
    <div class="main-nav">
      {module main menu}
    </div>
    <!--.main-nav-->
    <div class="clear"></div>
  </div>
  <!--#w-header--> 
</div>
<!--#header-->

<div id="main">
  <div id="w-main">
     <div id="main-left">
	<div class="left-find"></div>
	<div class="right-find"></div>
		<div class="find">
			{module search}
		</div> 
      <!--.find-->
      <div class="clear"></div>
      <div class="infomation">
		<?php $article = JUtility::getArticle(15); ?>
        <h2><a href="#"><?php echo $article->title; ?></a></h2>
        <?php echo $article->introtext; ?>
      </div>
      <!--.infomation--> 
    </div>
    <?php 
				 $order_first = $this->model->getOrder($this->order->jobid);
				 $order_catering_first = $this->model->getUserInfo($this->order->catererid);
				 $order_user_first = $this->model->getUserInfo($order_first->userid);
				
	?>
    <!--#main-left-->
    <div id="main-right2">
      <div id="cateringsvirksomhed-page">
        <div class="god-content">
          <div class="title2">
            <ul>
              <li class="icon-none"><a href="<?php echo JRoute::_('index.php?option=com_jobs&view=catering');?>">CATERINGSVIRKSOMHED</a></li>
              <li><a href="#"><?php echo $order_catering_first->name;?>’s catering</a></li>
            </ul>
          </div>
          <!--title4-->
           
          <div class="catering-content-info">
          	<div class="catering-content-left">
            <h2><?php echo $order_catering_first->name;?>’s catering</h2>
            <p><?php echo $order_first->title; ?></p>
            <p><?php echo $order_first->description; ?></p>
           
           </div><!--.catering-content-left-->
           <div class="catering-content-right">
           	<div class="quality">
            	<ul>
                	<li>
                    	<div class="quality-title">
                        	KVALITET
                        </div><!--quality-title-->
                        <div class="quality-core">
                        	<?php echo $this->order->rating_quality; ?>
                        </div><!--quality-core-->
                    </li>
                    <li>
                    	<div class="quality-title">
                       	  SERVICE
                      </div><!--quality-title-->
                        <div class="quality-core">
                        	<?php echo $this->order->rating_service; ?>
                        </div><!--quality-core-->
                    </li>                   
                </ul>
            </div><!--quality-->
            <div class="img-quality">
            	<?php
					if(is_file($order_catering_first->image)) {
                ?>
            	<img src="timthumb.php?src=<?php echo $order_catering_first->image;?>&w=212" alt="" />
                <?php } ?>
            </div><!--.img-quality-->
           </div><!--.catering-content-right-->
          </div>
          <!--catering-content-info--> 
          
          
          <div class="line"></div>
          
                  
        </div>
        <!--.god-content--> 
      </div>
      <!--#cateringsvirksomhed-page--> 
    </div>
    <!--#main-right--> 
  </div>
  <!--#w-main--> 
</div>
<!--#main-->
<div class="clear"></div>
<div id="contact">
  <div id="w-contact">
    <div class="left-con">
      <div class="left-con-top"></div>
      <!--left-con-top-->
      <div class="left-con-mid">
        <div class="contact-con">
		<?php $article = JUtility::getArticle(17); ?>
          <h2><a href="#"><?php echo $article->title; ?></a></h2>
          <?php echo $article->introtext; ?>
        </div>
        <!--.contact-con-->
        <div class="contact-con contact-con2">
			<?php $article = JUtility::getArticle(18); ?>
			<h2><a href="#"><?php echo $article->title; ?></a></h2>
			<?php echo $article->introtext; ?>
        </div>
        <!--.contact-con--> 
      </div>
      <!--left-con-mid-->
      <div class="left-con-bottom"></div>
      <!--left-con-bottom--> 
    </div>
    <!--.left-con-->
    
    <div class="address">
		<?php $article = JUtility::getArticle(16); ?>
		<h2><?php echo $article->title; ?></h2>
		<?php echo $article->introtext; ?>
    </div>
    <!--address--> 
    
    <div class="contact-form">
		{module kontakt}
    </div><!--.contact-form-->
  </div>
  <!--w-contact--> 
</div>
<!--#contact-->
<div class="clear"></div>
<div id="copyright">
	<div id="w-copyright">
		{module footer}
	</div>
</div>
<!--#copyright-->